package org.example.cardgame.entity;

/**
 * @Author juanita.ren
 * @Date 2024/11/11 22:09
 * @Version 1.0
 */

public class Card {
    public static final int SUITS_TYPE_SPADES = 0;
    public static final int SUITS_TYPE_HEARTS = 1;
    public static final int SUITS_TYPE_CLUBS = 2;
    public static final int SUITS_TYPE_DIAMONDS = 3;
    private int type;
    private int number;

    public Card() {
    }

    public Card(int type, int number) {
        this.type = type;
        this.number = number;
    }

    public int getType() {
        return this.type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getNumber() {
        return this.number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    @Override
    public String toString() {
        return "[number=" + this.number + ", type=" + this.type + "]";
    }
}
